﻿using RollCall.Pages;
using System.Windows.Input;
using System.Windows.Navigation;

namespace RollCall.ViewModel
{
    public class HomePageModelView
    {
        public ICommand ButtonCommand { get; set; }
        private readonly NavigationService _navigationService;

        public HomePageModelView(NavigationService navigationService)
        {
            _navigationService = navigationService;
            ButtonCommand = new RelayCommand(s =>
              {
                  _ = _navigationService.Navigate(new RollPage(type: s.ToString()));
              }, s => true);
        }
    }
}
